/*
 * Copyright (C) 2017 Zhejiang LISHI Technology CO.,LTD.
 * All rights reserved.
 * Official Web Site: http://www.lishicloud.com.
 */
package com.myjava.exception;

/**
 * Created by yuanwai (<a href="mailto:lxdhzzj@gmail.com">lxdhzzj@gmail.com</a>)
 * Create Time: 2015/6/12 18:08
 * Description:
 */
public interface ExceptionRepresentation {

    String EXP_NOTABLE = "Not found table(resource) name at ...";

    String EXP_PARAMS_ERROR = "Params not null, But has a error format ...";

    String EXP_PARAMS_WARN = "Params not null, But it is has a ',' of closed ...";

    String EXP_PARAMS_PAGE_ERROR = "By default, the pagesize can not be set = 0 " +
            ".Now we reset pagesize = 20, and go on ...";

    String EXP_ILLOGICAL_WARN = "Program occur a illogical warn, please check it...";

    String EXP_ILLOGICAL_ERROR = "Program occur a illogical error, please check it...";

    String EXP_PARAMS_PAGE_ILLOGICAL = "Request currentPage > totalPages, " +
            "you must check you request params about currentPage or pageSize";

    String EXP_ILLOGICAL_QUERTPARAMS_ERROR = "Program occur a illogical query params," +
            " it maybe start json params (The query regex just include 'term','prefix','fuzzy' and 'range')," +
            "please check it...";

    String EXP_ILLOGICAL_BETWEENVALUE_ERROR = "Program occur a illogical query params at range value," +
            " it maybe start json params (The range must be two params via '-'), please check it...";

    String EXP_BETWEENVALUE_ERROR = "Between value was null ...";

    String EXP_SHOULD_LESSTWO_ERROR = "If you use 'should' judgement rule, " +
            "the query criterion must at least 2," +
            " such as like this (name = 'a' OR name = 'b' ) ...";

    String EXP_CREATE_NO_DATA = "Not found data that is to be used in insert into resource," +
            " you must check the POST content .... ";

    String EXP_CREATE_NO_THIS_FIELD = "Not found field {0} in resource {1}," +
            " you must check the POST content .... ";

    String EXP_PK_NOT_FOUND = "Not found pkId in resource {0}," +
            " you must check the POST content .... ";

    String EXP_IDS_ILLOGICAL = "The ids's last char is ','," +
            " you must check the DELETE content .... ";

    String EXP_FIELDS_REQUIRED_ERROR = "The field is required, but we caught it null ... ";

    String EXP_FIELDS_UNKNOWN_ERROR = "is unknown field in this resource ... ";

    String EXP_FIELDS_UNIQUE_ERROR = "This value is unique, but we found same value in database ... ";

    String EXP_FIELDS_LENGTH_ERROR = "This value's length too long ... ";

    String EXP_FIELDS_ALTERNATIVE_ERROR = "Dict_details_index and dict_details_parent only choose either-or ... ";

    String EXP_DICT_PARENT_ERROR = "If you will create parent dict, you must post dict_mnemonic_code " +
            "Or if you will create child dict, you must post dict_parent ......";

    String EXP_SECURITY_NOT_FOUND_ERROR = "Not found requried field ....";

    String EXP_SECURITY_TOKEN_NOT_FOUND = "Not found token ...";

    String EXP_SECURITY_TOKEN_NO_THIS_TOKEN = "No authentication info ...";

    String EXP_SECURITY_TOKEN_INVALID = "Token invalid ...";

    String EXP_SECURITY_TOKEN_APPID_OR_APPSECRET_ERROR = "Appid or appSecret error ...";

    String EXP_SECURITY_TOKEN_EXPIRED = "Token has expired ...";

    String EXP_META_NO_PACKAGE = "Not found package info, but it is required ...";

    String EXP_META_NO_RESOURCE = "Not found resorceDetails's resource info, but it is required ...";

    String EXP_META_ID_NOTFOUND = "Not found id, you must check your request data .... ";

    String EXP_META_BATCH_ERROR = "At least one operation occur error while batch committing, maybe cause REST body has some illogicals  .... ";

    String EXP_META_DS_ERROR = "Some datasource param is null  .... ";

    String EXP_META_DATA_NOTFOUND = "Not found data, you must check your request input .... ";
}
